<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/31
 * Time: 15:48
 */

?>


<?php

require_once "../php/DB_Util/sql_helper.php";

header("Access-Control-Allow-Origin: http://client.gz16albx.com");

//获取所有的分类导航

$sql = " SELECT o.value FROM options o WHERE o.`key` = 'nav_menus' ";

$res = query($sql);

$arr = array("code"=>200,"msg"=>"操作失败");

$value = $res[0]["value"];

$data = json_decode($value);

if ($res){
    $arr["code"] = 100;
    $arr["msg"] = "操作成功";
    $arr["data"] = $data;
}

echo json_encode($arr,JSON_UNESCAPED_UNICODE);

?>

